package com.itheima.test1;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("file-io-test\\a.txt");
        FileOutputStream fos=new FileOutputStream("file-io-test\\copy.txt");

        int b;
        while ((b=fis.read())!=-1){
            fos.write(b);
        }

        fis.close();
        fos.close();
    }
}
